$(function(){
	var myChart = echarts.init(document.getElementById('showEcharts'));
	var option = {
		legend:{
			data:['区内重复','区外重复']
		},
		tooltip:{
			show:true,
			trigger: 'axis',
	        axisPointer : {             /*坐标轴指示器，坐标轴触发有效*/
	            type : 'shadow'        /*默认为直线，可选为：'line' | 'shadow'*/
	        }
		},
		grid: { 
			right: '10%', 
			bottom:'35%'  
		}, 
		xAxis:{
			data:["淮海路接种门诊","矿医岱河分院","临涣镇卫生院","石台镇卫生院","淮北市疾控中心孟山中路接种门诊","矿医杨庄分院","青龙山社区中心","韩村镇卫生院","五沟镇卫生院","宋町镇卫生院","濉溪镇卫生院","矿医朔里分院","孙疃镇卫生院","土楼接种门诊","刘桥镇卫生院"],
			axisLabel: {
				interval: 0,
	            rotate: -80
        	}
		},
		yAxis:{},
		series:[{
			name:"区内重复",
			type:"bar",
			stack:'重复儿童数',
			data:[0,50,36,54,23,20,20,23,41,23,17,36,21,54,47]
		},{
			name:"区外重复",
			type:"bar",
			stack:'重复儿童数',
			data:[0,19,21,10,27,66,23,20,43,23,19,23,17,31,21]
		}]
	};
	
	myChart.setOption(option);
	/*容器大小自适应*/
	window.onresize =  myChart.resize;
});